package com.cg.service.impl;

import com.cg.dao.DoctorMapper;
import com.cg.service.DoctorService;
import com.cg.vo.DoctorListVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * (Doctor)表服务实现类
 *
 * @author chengong
 * @since 2024-01-08 17:53:56
 */
@Service("doctorService")
public class DoctorServiceImpl implements DoctorService {
    @Resource
    private DoctorMapper doctorMapper;


    /**
     * 根据医生姓名模糊查询医生列表
     */
    @Override
    public List<DoctorListVo> queryDoctorList(String doctorName) {
        return doctorMapper.queryDoctorList(doctorName);
    }

    /**
     * 根据医生id查询医生详情
     */
    @Override
    public DoctorListVo queryDoctorByDoctorId(Integer doctorId) {
        return doctorMapper.queryDoctorByDoctorId(doctorId);
    }
}
